package com.ruoyi.shop.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * orderdetail对象 orderdetail
 * 
 * @author ruoyi
 * @date 2025-06-08
 */
public class Orderdetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单详情ID */
    private Long detailid;

    /** 商家ID */
    @Excel(name = "商家ID")
    private Long sid;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String ordersn;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long goodsid;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodsname;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 数量 */
    @Excel(name = "数量")
    private Long quantity;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String goodsimg;

    public void setDetailid(Long detailid) 
    {
        this.detailid = detailid;
    }

    public Long getDetailid() 
    {
        return detailid;
    }
    public void setSid(Long sid) 
    {
        this.sid = sid;
    }

    public Long getSid() 
    {
        return sid;
    }
    public void setOrdersn(String ordersn) 
    {
        this.ordersn = ordersn;
    }

    public String getOrdersn() 
    {
        return ordersn;
    }
    public void setGoodsid(Long goodsid) 
    {
        this.goodsid = goodsid;
    }

    public Long getGoodsid() 
    {
        return goodsid;
    }
    public void setGoodsname(String goodsname) 
    {
        this.goodsname = goodsname;
    }

    public String getGoodsname() 
    {
        return goodsname;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }
    public void setGoodsimg(String goodsimg) 
    {
        this.goodsimg = goodsimg;
    }

    public String getGoodsimg() 
    {
        return goodsimg;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("detailid", getDetailid())
            .append("sid", getSid())
            .append("ordersn", getOrdersn())
            .append("goodsid", getGoodsid())
            .append("goodsname", getGoodsname())
            .append("price", getPrice())
            .append("quantity", getQuantity())
            .append("goodsimg", getGoodsimg())
            .toString();
    }
}
